package com.example.recyclerviewproject;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        findViewById(R.id.to_recyclerview_normal).setOnClickListener((v)->{//跳到普通的列表
            Intent intent = new Intent(MainActivity.this,RecyclerViewNormalAct.class);
            startActivity(intent);
        });
        findViewById(R.id.to_recyclerview_decoration).setOnClickListener((v)->{//有装饰的
            Intent intent = new Intent(MainActivity.this,RecyclerViewDecorationAct.class);
            startActivity(intent);
        });
        findViewById(R.id.to_recyclerview_grid).setOnClickListener((v)->{//网格
            Intent intent = new Intent(MainActivity.this,RecyclerViewGridActivity.class);
            startActivity(intent);
        });
        findViewById(R.id.to_recyclerview_act_refresh).setOnClickListener((v)->{//下拉刷新上拉加载
            Intent intent = new Intent(MainActivity.this,RecyclerViewRefreshAct.class);
            startActivity(intent);
        });
    }
}